home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacApp Release 10 / MacApp Release 10 - HD Ready / Libraries / Views / Sources / Printing.r < prev    next >
Encoding:
Text File  |  1996-04-03  |  2.9 KB  |  189 lines  |  [TEXT/MPS ]

  1. /*
  2.     Printing.r
  3.     MacApp® Printing Resources
  4.     Copyright © 1986-96 by Apple Computer, Inc. All rights reserved.
  5. */
  6.  
  7. /* • Auto-Include the requirements for this source */
  8. #ifndef __TYPES_R__
  9. #include "Types.r"
  10. #endif
  11.  
  12. #ifndef __MacAppTypes__
  13. #include "MacAppTypes.r"
  14. #endif
  15.  
  16. #define      phSpoolPrintDialog            257
  17. #define      phFinderPrintDialog        258
  18. #define      phNoPages                    251
  19. #define      phWhichDoc                    261
  20. #define      kPrinting                    131
  21.  
  22.  
  23. resource 'mem!' (kPrinting,
  24. #if qNames
  25.     "kPrinting",
  26. #endif
  27.     purgeable) {
  28.     0,                    // Add to object heap size
  29.     0,                    // Add to heap increment size
  30.     43 * 1024,            // Add to temporary reserve
  31.     0,                    // Add to permanent reserve
  32.     0                    // Add to stack space
  33. };
  34.  
  35. resource 'DLOG' (phSpoolPrintDialog,
  36. #if qNames
  37.     "phSpoolPrintDialog",
  38. #endif
  39.     purgeable) {
  40.     {148, 62, 233, 365},
  41.     dBoxProc,
  42.     visible,
  43.     noGoAway,
  44.     0x0,
  45.     phSpoolPrintDialog,
  46.     "",
  47.     noAutoCenter        // Can't center since it may cover print manager messages
  48. };
  49.  
  50. resource 'DLOG' (phFinderPrintDialog,
  51. #if qNames
  52.     "phFinderPrintDialog",
  53. #endif
  54.     purgeable) {
  55.     {148, 62, 233, 365},
  56.     dBoxProc,
  57.     visible,
  58.     noGoAway,
  59.     0x0,
  60.     phFinderPrintDialog,
  61.     "",
  62.     noAutoCenter        // Can't center since it may cover print manager messages
  63. };
  64.  
  65. resource 'DLOG' (phWhichDoc,
  66. #if qNames
  67.     "phWhichDoc",
  68. #endif
  69.     purgeable) {
  70.     {1, 1, 2, 2},
  71.     dBoxProc,
  72.     visible,
  73.     noGoAway,
  74.     0x0,
  75.     phWhichDoc,
  76.     "",
  77.     noAutoCenter
  78. };
  79.  
  80. resource 'DITL' (phNoPages,
  81. #if qNames
  82.     "phNoPages",
  83. #endif
  84.     purgeable) {
  85.     {    /* array DITLarray: 3 elements */
  86.         /* [1] */
  87.         {55, 288, 75, 348},
  88.         Button {
  89.             enabled,
  90.             "OK"
  91.         };
  92.         /* [2] */
  93.         {10, 75, 42, 348},
  94.         StaticText {
  95.             disabled,
  96.             "This document has no pages within the requested range."
  97.         };
  98.         /* [3] */
  99.         {10, 20, 42, 52},
  100.         Icon {
  101.             disabled,
  102.             stopIcon
  103.         }
  104.     }
  105. };
  106.  
  107. resource 'DITL' (phSpoolPrintDialog,
  108. #if qNames
  109.     "phSpoolPrintDialog",
  110. #endif
  111.     purgeable) {
  112.     {    /* array DITLarray: 2 elements */
  113.         /* [1] */
  114.         {55, 233, 75, 293},
  115.         Button {
  116.             enabled,
  117.             "Cancel"
  118.         };
  119.         /* [4] */
  120.         {10, 20, 42, 293},
  121.         StaticText {
  122.             disabled,
  123.             "'<<<>>>' is now being printed."
  124.         }
  125.     }
  126. };
  127.  
  128. resource 'DITL' (phFinderPrintDialog,
  129. #if qNames
  130.     "phFinderPrintDialog",
  131. #endif
  132.     purgeable) {
  133.     {    /* array DITLarray: 3 elements */
  134.         /* [1] */
  135.         {55, 233, 75, 293},
  136.         Button {
  137.             enabled,
  138.             "Cancel"
  139.         };
  140.         /* [4] */
  141.         {55, 84, 75, 220},
  142.         Button {
  143.             enabled,
  144.             "Cancel All Printing"
  145.         };
  146.         /* [5] */
  147.         {10, 20, 42, 293},
  148.         StaticText {
  149.             disabled,
  150.             "'<<<>>>' is now being printed."
  151.         }
  152.     }
  153. };
  154.  
  155. resource 'DITL' (phWhichDoc,
  156. #if qNames
  157.     "phWhichDoc",
  158. #endif
  159.     purgeable) {
  160.     {    /* array DITLarray: 1 elements */
  161.         /* [1] */
  162.         {0, 0, 0, 0},
  163.         UserItem {
  164.             disabled
  165.         }
  166.     }
  167. };
  168.  
  169. resource 'ALRT' (phNoPages,
  170. #if qNames
  171.     "phNoPages",
  172. #endif
  173.     purgeable) {
  174.     {100, 120, 185, 478},
  175.     phNoPages,
  176.     {    /* array: 4 elements */
  177.         /* [1] */
  178.         OK, visible, silent;
  179.         /* [2] */
  180.         OK, visible, silent;
  181.         /* [3] */
  182.         OK, visible, silent;
  183.         /* [4] */
  184.         OK, visible, silent
  185.     },
  186.     alertPositionMainScreen
  187. };
  188.  
  189.